package com.zhongge.mapper;

import com.zhongge.entity.Dict;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhongge.vo.DictVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zhongge
 * @since 2025-11-09
 */
public interface DictMapper extends BaseMapper<Dict> {
    @Select("select value as id, `describe` as name from t_dict " +
            "where table_name='t_holiday' and field_name='holiday_value'")
    public List<DictVO> getHolidayKeyValue();
}
